<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>

    <template id="t1">
      <div>
        <input @[e]="say()" />
      </div>
    </template>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        template: "#t1",
        data: {
          e: "input",
        },
        methods: {
          say() {
            console.log("hello");
          },
        },
        mounted() {
          setTimeout(() => {
            this.e = "change";
          }, 3000);
        },
      });
    </script>
  </body>
</html>
